﻿<!--
	========================================================================
	 awzBoxes Library
	
	 Homepage: http://www.awzhome.de/
	========================================================================
	
	This Source Code Form is subject to the terms of the Mozilla Public
	License, v. 2.0. If a copy of the MPL was not distributed with this
	file, You can obtain one at http://mozilla.org/MPL/2.0/.
   
	The Original Code is code of awzBoxes Library.

	The Initial Developer of the Original Code is Andreas Weizel.
	Portions created by the Initial Developer are
	Copyright (C) 2011-2012 Andreas Weizel. All Rights Reserved.
	
	Contributor(s): (none)
	
	========================================================================
-->

<Window
	x:Class="AWZhome.awzBoxes.FloatingWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:box="clr-namespace:AWZhome.awzBoxes"
	xmlns:boxt="clr-namespace:AWZhome.awzBoxes.Tools"
	TextOptions.TextFormattingMode="Display"
	Loaded="Window_Loaded"
	Closed="Window_Closed"
	Title="{Binding Title}"
	Height="330" Width="249">

	<Window.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="Styles/FloatingWindowStyle.Generic.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Window.Resources>

	<Window.CommandBindings>
		<CommandBinding
			Command="box:BoxCommands.FloatingBoxItemClose"
			CanExecute="FloatingBoxItemCloseCommandBinding_CanExecute"
			Executed="FloatingBoxItemCloseCommandBinding_Executed" />
		<CommandBinding
			Command="box:BoxCommands.FloatingBoxItemRedock"
			CanExecute="FloatingBoxItemRedockCommandBinding_CanExecute"
			Executed="FloatingBoxItemRedockCommandBinding_Executed" />
		<CommandBinding
			Command="box:BoxCommands.FloatingBoxItemMaximize"
			CanExecute="FloatingBoxItemMaximizeCommandBinding_CanExecute"
			Executed="FloatingBoxItemMaximizeCommandBinding_Executed" />
	</Window.CommandBindings>

	<!-- Container for BoxItem -->
	<Grid
		Name="floatingBoxItemContainer"
		Style="{Binding Source={StaticResource FloatingBoxItemContainerStyle}}"></Grid>
</Window>
